-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add apistub Check Without Tox
#44124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
added the max_python_version because running with python ver > 3.11 causes some astroid exceptions 🤔 for example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds the apistub check to the azpysdk CLI tool, allowing API stub generation without requiring tox. This aligns with the ongoing migration from the slower tox-based framework to a lightweight implementation using the azpysdk entrypoint. The check generates API stubs for packages, which are used for API review and documentation purposes.
Key Changes
- Implements a new
apistubcheck class that follows the existing Check pattern - Registers the check with the CLI parser and adds documentation
- Configures the template pyproject.toml to opt-out by default (
apistub = false)
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| eng/tools/azure-sdk-tools/azpysdk/apistub.py | New check implementation that generates API stubs by installing apiview dependencies, building wheels, and running the apistub tool |
| eng/tools/azure-sdk-tools/azpysdk/main.py | Imports and registers the new apistub check in the CLI parser |
| sdk/template/azure-template/pyproject.toml | Adds apistub = false configuration to opt-out by default in the template |
| doc/tool_usage_guide.md | Documents the new apistub tool in the available tools table |
#42883